package com.dd.probe.common.util.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author liuxianmeng
 * @CreateTime 2024/11/5 2:04
 * @Description 当前分页基本信息类 用于构建VO分页信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("当前分页基本信息类 用于构建VO分页信息")
public class CurPage<T> {
    @ApiModelProperty("当前页码")
    private int pageNum;
    @ApiModelProperty("每页记录数")
    private int pageSize;
    @ApiModelProperty("总记录数")
    private long totalRows;
    @ApiModelProperty("当前页所有数据")
    private List<T> list;
}
